package com.example.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mall.domain.SeckillProducts;
import com.example.mall.dto.SeckillProductsDto;
import com.example.mall.query.PageDTO;
import com.example.mall.query.SeckillProductsQuery;

import java.util.List;


/**
 * <p>
 * 秒杀商品表 服务类
 * </p>
 *
 * @author whale
 * @since 2025-05-06
 */
public interface ISeckillProductsService extends IService<SeckillProducts> {

    //分页查询秒杀商品表信息
    PageDTO<SeckillProductsDto> queryPage(SeckillProductsQuery seckillProductsQuery);

    //根据id查询秒杀商品表信息
    SeckillProducts querySeckillProductsById(Long seckillId);

    //查询秒杀商品表信息
    List<SeckillProducts> querySeckillProductsList();

    //新增秒杀商品表信息
    void insert(SeckillProductsDto seckillProductsDto);

    //修改秒杀商品表信息
    void update(SeckillProductsDto seckillProductsDto);

    //删除秒杀商品表信息
    void delete(Long seckillId);

    //批量删除秒杀商品表信息
    void deleteBatch(List<Long> seckillIds);
}
